﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LogicServer;

namespace BugSysSolution.DataManagement
{
    public partial class EditUpLoadFiles : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                Bind(1);
            }
        }

        public void Bind(int index)
        {
            UpLoadFileLogic uf = new UpLoadFileLogic();
            //this.Pager.AlwaysShow = true;
            //this.Pager.RecordCount = uf.GetFileCount(this.Pager.PageSize, index);
            //this.rep1.DataSource = uf.GetAllFile(this.Pager.PageSize, index);
            this.rep1.DataSource = uf.GetAllFileNoPageing();
            this.rep1.DataBind();
        }

        protected void Pager_PageChanged(object sender, EventArgs e)
        {
            Bind(this.Pager.CurrentPageIndex);
        }
    }
}